﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_SanPham.aspx.cs" Inherits="GiaoDien.Admin.WebForm2" Title="Untitled Page" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TuaDe" runat="server">
    Quản lý sản phẩm 
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">  
   
    <table style="width: 100%">
        <tr>
            <td width="250px">
                <asp:DropDownList ID="drNCC" runat="server" Height="25px" Width="206px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnTimSanPham" runat="server" Text="Tìm Sản Phẩm" 
                    onclick="btnTimSanPham_Click"  /></td>
        </tr>
    </table>
   <asp:DataList ID="DataList1" runat="server" style="margin-right: 0px" 
        Width="100%">
            <ItemTemplate>
            <div class="detail">
            <table style="width: 98%">
                <tr>
                    <td width="150px">
                       <a href=""><img src="http://hc10-em11-ncc.somee.com/Webservice_NCC/images/<%# Eval("HinhAnh") %>" alt="Golden Bell" width="120" height="165" /></a>
                       
                    </td>
                    <td valign="top">
                        <h3><asp:Label ID="lblTenSanPham" runat="server" Text='<%# Eval("TenSanPham") %>' Font-Bold="True"></asp:Label></h3>
                        <p class="price">Giá: <span>
                        <asp:Label ID="lblGiaBan" runat="server" Text='<%# Eval("GiaBanQuiDinh") %>'></asp:Label> 
                            VNĐ</span></p>
                        <p class="price">Nhà cung cấp : 
                            <asp:Label ID="lblNhaCungCap" runat="server" Text=''></asp:Label></p>
                        <p class="price">Mô tả : 
                            <asp:Label ID="lblMoTa" runat="server" Text='<%# Eval("MoTaSanPham") %>'></asp:Label></p>
                      
                    </td>
                </tr>
            </table>
            </div>
                
              <div class="cleaner"></div>
              <div class="cleaner"></div>
            </ItemTemplate>
            </asp:DataList>
 <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="« Trước" FirstText="– Đầu" LabelText="Trang:" LastText="Cuối" NextText="Sau »" ResultsFormat="Kết quả từ {0}-{1} " ShowFirstLast="True" SliderSize="5" PagingMode="PostBack">
    </cc1:CollectionPager>
<br />
<br />
 <p><asp:Label ID="lblThongBao" runat="server" ForeColor="Red" Font-Bold="True"></asp:Label></p>
<table width="50%" border="1" cellspacing="2" cellpadding="2">
  <tr>
    <td>Tên sản phẩm :</td>
    <td>
        <asp:TextBox ID="txtTenSanPham" runat="server" Width="200px"></asp:TextBox>
        <label>
        &nbsp;</label></td>
  </tr>
  <tr>
    <td>Danh mục :</td>
    <td>
        <asp:DropDownList ID="drDanhMuc" runat="server" Width="200px">
        </asp:DropDownList>
        <label>
        &nbsp;</label></td>
  </tr>
  <tr>
    <td>Nhà cung cấp :</td>
    <td>
        <asp:DropDownList ID="drNCC2" runat="server" Width="200px">
        </asp:DropDownList>
        <label>
        &nbsp;</label></td>
  </tr>
  <tr>
    <td>Số lượng</td>
    <td>
        <asp:TextBox ID="txtSoLuong" runat="server" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Giá mua :</td>
    <td>
        <asp:TextBox ID="txtGiaMua" runat="server" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Giá bán qui định :</td>
    <td>
        <asp:TextBox ID="txtGiaBanQuiDinh" runat="server" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Mô tả :</td>
    <td>
        <asp:TextBox ID="txtMoTa" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Ngưỡng trên :</td>
    <td>
        <asp:TextBox ID="txtNguongTren" runat="server" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Ngưỡng dưới :</td>
    <td>
        <asp:TextBox ID="txtNguongDuoi" runat="server" Width="200px"></asp:TextBox>
      </td>
  </tr>
  <tr>
    <td>Hình ảnh</td>
    <td><label>
        <asp:TextBox ID="txtHinhAnh" runat="server" Width="200px"></asp:TextBox>
        &nbsp;</label></td>
  </tr>
  <tr>
    <td colspan="2" align="center">
        <asp:Button ID="btnThem" runat="server" onclick="btnThem_Click" 
            Text="Thêm mới" />
        <label>
        &nbsp;<asp:Button ID="btnLamMoi" runat="server" onclick="btnLamMoi_Click" 
            Text="Làm mới" />
        &nbsp;</label></td>
  </tr>
</table>
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="divPhanTrang" runat="server">
</asp:Content>
